package com.mcxx.modules.temporary.order.dao.write;

import com.mcxx.modules.miniSalvation.order.entity.OrderEntity;
import com.mcxx.modules.miniSalvation.order.entity.OrderStateEntity;
import org.apache.ibatis.annotations.Mapper;
import com.mcxx.modules.temporary.order.entity.TmpOrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TmpOrderWriteDao {

	int insert(TmpOrderEntity tmpOrder);


	int insertIgnoreNull(TmpOrderEntity tmpOrder);


	int update(TmpOrderEntity tmpOrder);


	int updateIgnoreNull(TmpOrderEntity tmpOrder);


	int delete(TmpOrderEntity tmpOrder);


	int updateState(OrderStateEntity orderStateEntity);


	int updateByIdAndVersion(TmpOrderEntity order);


	int updateRecordFlagById(@Param("idList") List<String> ids, @Param("recordFlag") String recordFlag);

	int updateBizStateByQueryCheck(List<String> list);

	int changeSaveMember(@Param("orderId") String orderId,@Param("change") String change);

	int deleteById(String orderId);


    int deleteRecordById(String orderId);
}
